package flc.ast.dialog;

import android.content.Context;
import android.view.Gravity;
import android.view.View;

import androidx.annotation.NonNull;

import flc.ast.R;
import flc.ast.databinding.DialogConvertSucBinding;
import stark.common.basic.base.BaseSmartDialog;

public class ConvertSucDialog extends BaseSmartDialog<DialogConvertSucBinding> implements View.OnClickListener {

    public String title = "";
    public String content = "";

    public ConvertSucDialog(@NonNull Context context) {
        super(context);
    }

    @Override
    protected int getGravity() {
        return Gravity.CENTER;
    }

    @Override
    protected int getLayoutId() {
        return R.layout.dialog_convert_suc;
    }

    @Override
    protected void initView(View view) {
        if (title != "") mDataBinding.tvTitle.setText(title);
        if (content != "") mDataBinding.tvContent.setText(content);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {

        }
    }


    private Listener listener;

    public void setListener(Listener listener) {
        this.listener = listener;
    }

    public interface Listener {
        void clickConfirm(String path);
    }
}
